package com.dw.etl.core.bean.model;

import java.io.Serializable;

public class BaseDimtb implements Serializable {
    private static final long serialVersionUID = 1L;

    private String pk;

    private String na;

    private String naDimtb;

    private String naDimcomptb;

    private String filter;

    private Byte fgComp;

    private String des;

    public String getPk() {
        return pk;
    }

    public void setPk(String pk) {
        this.pk = pk;
    }

    public String getNa() {
        return na;
    }

    public void setNa(String na) {
        this.na = na;
    }

    public String getNaDimtb() {
        return naDimtb;
    }

    public void setNaDimtb(String naDimtb) {
        this.naDimtb = naDimtb;
    }

    public String getNaDimcomptb() {
        return naDimcomptb;
    }

    public void setNaDimcomptb(String naDimcomptb) {
        this.naDimcomptb = naDimcomptb;
    }

    public String getFilter() {
        return filter;
    }

    public void setFilter(String filter) {
        this.filter = filter;
    }

    public Byte getFgComp() {
        return fgComp;
    }

    public void setFgComp(Byte fgComp) {
        this.fgComp = fgComp;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BaseDimtb other = (BaseDimtb) that;
        return (this.getPk() == null ? other.getPk() == null : this.getPk().equals(other.getPk()))
            && (this.getNa() == null ? other.getNa() == null : this.getNa().equals(other.getNa()))
            && (this.getNaDimtb() == null ? other.getNaDimtb() == null : this.getNaDimtb().equals(other.getNaDimtb()))
            && (this.getNaDimcomptb() == null ? other.getNaDimcomptb() == null : this.getNaDimcomptb().equals(other.getNaDimcomptb()))
            && (this.getFilter() == null ? other.getFilter() == null : this.getFilter().equals(other.getFilter()))
            && (this.getFgComp() == null ? other.getFgComp() == null : this.getFgComp().equals(other.getFgComp()))
            && (this.getDes() == null ? other.getDes() == null : this.getDes().equals(other.getDes()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPk() == null) ? 0 : getPk().hashCode());
        result = prime * result + ((getNa() == null) ? 0 : getNa().hashCode());
        result = prime * result + ((getNaDimtb() == null) ? 0 : getNaDimtb().hashCode());
        result = prime * result + ((getNaDimcomptb() == null) ? 0 : getNaDimcomptb().hashCode());
        result = prime * result + ((getFilter() == null) ? 0 : getFilter().hashCode());
        result = prime * result + ((getFgComp() == null) ? 0 : getFgComp().hashCode());
        result = prime * result + ((getDes() == null) ? 0 : getDes().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append(", pk=").append(pk);
        sb.append(", na=").append(na);
        sb.append(", naDimtb=").append(naDimtb);
        sb.append(", naDimcomptb=").append(naDimcomptb);
        sb.append(", filter=").append(filter);
        sb.append(", fgComp=").append(fgComp);
        sb.append(", des=").append(des);
        sb.append("]");
        return sb.toString();
    }
}